package com.vhall.component.entity.room.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 对外提供直播间统计数
 * @TableName external_live_stats
 */
@TableName(value ="external_live_stats")
@Data
public class ExternalLiveStatsEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 房间ID
     */
    @TableField(value = "il_id")
    private Integer ilId;

    /**
     * 总膨胀观看数-统计 room_stats_expansion
     */
    @TableField(value = "expansion_number")
    private Integer expansionNumber;

    /**
     * 直播观看总pv-统计 room_attends
     */
    @TableField(value = "room_pv")
    private Integer roomPv;

    /**
     * 回放观看总pv-统计 record_attends
     */
    @TableField(value = "record_pv")
    private Integer recordPv;

    /**
     * 迁移数据总pv-获取 rooms 的total_number_of_views
     */
    @TableField(value = "migrate_pv")
    private Integer migratePv;

    /**
     * 对外显示总pv
     */
    @TableField(value = "external_display_pv")
    private Integer externalDisplayPv;

    /**
     * 直播与视频观看人数-外部渠道数据-通过国信直接插入对应数据,只做业务显示不做业务更新
     */
    @TableField(value = "external_channel_view_count")
    private Integer externalChannelViewCount;

    /**
     * 点赞数-获取 rooms 的 like
     */
    @TableField(value = "likes")
    private Integer likes;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private LocalDateTime updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}